﻿using JT808.Protocol.Extensions.JTActiveSafety.MessageBody;
using JT808.Protocol.Extensions.JTActiveSafety.Metadata;
using JTActiveSafety.Protocol;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace JTActiveSafety.Gateway.Services
{
    /// <summary>
    /// 附件持久化存储
    /// </summary>
    public interface IAttachFileStorageService
    {
        /// <summary>
        /// 写入数据，通常是写入缓存区
        /// </summary>
        /// <param name="package"></param>
        /// <returns>返回文件名</returns>
        Task WriteData(JTActiveSafetyPackage package);
    }
}
